package com.gzl.test.struts.action;

import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {
	private String uname;
	private String pwd;
	
	public String reg()	throws Exception {
		System.out.println("do reg");
		return SUCCESS;
	}
	public String login()	throws Exception {
		System.out.println("do login");
		System.out.println("用户输入的用户名是:"+uname);
		System.out.println("用户输入的用户名是:"+getPwd());
		
		return "login_ok" ;
	}
	
	public String ttt() throws Exception{
		System.out.println("UserAction.ttt()");
		return SUCCESS;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	
}
